/**
 * @(#)SymbolTableFilter.java, 2008-4-30.
 * Copyright 2008  Program Analysis Research Group(PARG),Institute of Software, Peking University.
 * All rights reserved.
 */
package edu.pku.sei.pgie.ui.actions;

import edu.pku.sei.pgie.analyzer.core.ICodeEntityRelationFilter;
import edu.pku.sei.pgie.analyzer.internal.CodeEntitySymbolTable;

/**
 * @author HeLi
 */
public class SymbolTableFilter implements ICodeEntityRelationFilter {
    CodeEntitySymbolTable symbolTable;

    public SymbolTableFilter(CodeEntitySymbolTable symbolTable) {
        this.symbolTable = symbolTable;
    }

    public boolean isSatisfied(String fqn1, String fqn2) {
        if (!symbolTable.contains(fqn1) || !symbolTable.contains(fqn2))
            return true;
        return false;
    }

}
